/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shanhesoft.java.common.core.vo.PageModel;
import com.shanhesoft.java.common.persistence.service.impl.DataServiceImpl;
import com.shanhesoft.java.modules.exam.domain.CourseStudent;
import com.shanhesoft.java.modules.exam.domain.dto.CourseStudentDto;
import com.shanhesoft.java.modules.exam.domain.vo.CourseStudentVo;
import com.shanhesoft.java.modules.exam.domain.vo.OjProblemsVo;
import com.shanhesoft.java.modules.exam.repository.CourseStudentRepository;
import com.shanhesoft.java.modules.exam.service.CourseStudentService;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 课程学生信息ServiceImpl 课程学生信息
 * @author admin
 * @version 2020-09-25 23:37:51
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class CourseStudentServiceImpl extends DataServiceImpl<CourseStudentRepository, CourseStudent, CourseStudentDto, String> implements CourseStudentService{
	@Override
	public void saveOrUpdate(CourseStudentDto courseStudentDto) {
		super.saveOrUpdate(courseStudentDto);
	}

	@Override
	public IPage<CourseStudentVo> findPage(PageModel pm, QueryWrapper wrapper) {
		return repository.findCourseStudentVoPage(pm, wrapper);
	}

	@Override
	public CourseStudentVo findVoById(String id) {
		return repository.findCourseStudentVoById(id);
	}

}
